package com.mediator.impl;

import com.mediator.Colleague;
import com.mediator.Mediator;

public class CDDriver extends Colleague {

	public CDDriver(Mediator mediator) {
		super(mediator);
	}

	private String data = null;

	public String getData() {
		return this.data;
	}

	public void readCD() {
		// 逗号前是视频数据，逗号后是声音数据
		this.data = "这是视频数据,这是声音数据";

		// 通知主板，自己的状态反生了改变
		this.getMediator().changed(this);
	}

}
